package Ioperations;

import book.Bookshelf;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28318
 * Date: 2025-10-28
 * Time: 17:14
 */
public class ShowIoperation implements Ioperations{
    @Override
    public void work(Bookshelf book) {
        System.out.println("***>查看所有...<***");
        if (book.getBookUsed() == 0){
            System.out.println("书架中没有图书...");
            return;
        }
        for (int i = 0; i < book.getBookUsed(); i++) {
            System.out.println(book.bookshelf[i]);
        }
    }
}
